class animal:
    def __init__(self,name):
        self.name = name
        
    def eating(self):
        print(f"{self.name}is eating")
    def slepping(self):
        print(f"{self.name}is slepping")
        
class 飞行能力:   #类名能用中文，太颠了
    def flying(self):
        print(f"{self.name} is flying")
        
class 游泳能力:   #类名能用中文，太颠了
    def swimming(self):
        print(f"{self.name} is swimming")
        
class Duck(animal,飞行能力,游泳能力):
    def __init__(self, name):
        super().__init__(name)
        
        
duck =Duck("唐老鸭")
duck.eating()
duck.slepping()
duck.swimming()
duck.flying()